@extends('layouts.colorbox')
@section('title', $title)
@section('content')
    <div class="card-box">
        <div class="row">
            <form class="form-horizontal form-bordered" action="{{ route('setting.user.update',['id'=>$user->id]) }}" method="POST">

            <div class="panel-body panel-body-nopadding">
                <div class="form-group">
                    <label class="col-sm-3 control-label" for="checkbox">所属角色组</label>
                    <div class="col-sm-6">
                        @inject('rolePresenter','App\Presenters\RolePresenter')
                        {!! $rolePresenter->rolesCheckbox($hasRoles) !!}
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">用户名 <font color="red">*</font></label>

                    <div class="col-sm-6">
                        <input type="text"  data-toggle="tooltip" name="name" data-trigger="hover" class="form-control tooltips"  data-original-title="不可重复" value="{{ $user->name }}">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">邮箱 <font color="red">*</font></label>

                    <div class="col-sm-6">
                        <input type="text"  data-toggle="tooltip" name="email" data-trigger="hover" class="form-control tooltips" data-original-title="不可重复" value="{{ $user->email }}">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">密码 <font color="red">*</font></label>

                    <div class="col-sm-6">
                        <input type="password"  data-toggle="tooltip" name="password" data-trigger="hover" class="form-control tooltips" placeholder="不修改密码请留空" data-original-title="请输入密码" >
                    </div>
                </div>
                <input type="hidden" name="_method" value="PUT">
                {{ csrf_field() }}
            </div><!-- panel-body -->

            <div class="panel-footer">
                <div align="center">
                    <input type="submit" class="btn btn-primary" id="save-role-permissions" value="保存">
                </div>
            </div><!-- panel-footer -->

            </form>
        </div>
    </div>
@stop